namespace MyBlog.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    [Serializable]
    public partial class CategoryModel
    {
        public CategoryModel()
        {
            ArticleModels = new List<ArticleModel>();
        }

        public int ID { get; set; }

        [Required]
        [StringLength(50)]
        public string AccountId { set; get; }

        [Required]
        [StringLength(50)]
        public string CategoryName { get; set; }

        public AccountModel Account { get; set; }

        public int ArticleCount { set; get; }

        public List<ArticleModel> ArticleModels { get; set; }
    }
}
